package org.nicocube.airain.utils;

import org.mockito.ArgumentMatcher;

public class IsA<T> extends ArgumentMatcher<T> {
	public static<X> IsA<X> build(Class<X> clazz) {
		return new IsA<X>(clazz);
	}
	private Class<T> clazz;
	private IsA(Class<T> clazz) {
		this.clazz = clazz;
	}
	@Override
	public boolean matches(Object argument) {
		return clazz.isInstance(argument);
	}
}